import request from '@/utils/request'

// 分类查询物料
export function listLimit(query) {
  return request({
    url: '/inv/limit/list',
    method: 'get',
    params: query
  })
}

// 更新安全量
export function updateLimit(data){
	return request({
		method:"put",
		url:"/inv/limit/edit",
		data:data
	})
}



// 物料汇总
export function seeMaterial(query) {
  return request({
    url: '/wm/balance/peek',
    method: 'get',
    params:query
  })
}




// 查询计量单位
export function listPacking(query) {
  return request({
    url: 'inv/unit/list',
    method: 'get',
    params: query
  })
}

// 导出物料
export function exportLimit(query) {
  return request({
    url: '/inv/limit/export',
    method: 'get',
    params: query
  })
}

// 获取仓库列表
export function listWarehouses(query) {
  return request({
    url: '/wm/warehouses/list',
    method: 'get',
    params: query
  })
}
